import React from 'react';
import {render} from 'react-dom';

import {HashRouter, Switch, Route} from 'react-router-dom';

import App from './src/App';

import {Provider} from 'react-redux';
import configureStore from './src/redux/index';
// import 'antd/dist/antd.min.css';
import 'antd/lib/style/themes/default.less';
import 'ant-design-pro/dist/ant-design-pro.min.css';
import './asset/style/app.less';

import {LocaleProvider} from 'antd';
import zh_CN from 'antd/lib/locale-provider/zh_CN';

const store = configureStore();

render(
  <Provider store={store}>
    <HashRouter>
      <LocaleProvider locale={zh_CN}>
        <App />
      </LocaleProvider>
    </HashRouter>
  </Provider>,
  document.getElementById('app'),
);
